<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <title>盒子滑动</title>
        <meta charset="utf-8" >
        <link rel="stylesheet" href="font_1313120_my866mh2u8/iconfont.css">
    </head>
    <body>
        <style>
            .a {
                margin-left: 100px;
                margin-top: 50px;
                width: 500px;
                height: 250px;
            }
            .b {
                width: 250px;
                height: 250px;
                background: orange;
                display: block;
                float: left;
                text-align: center;
            }
            .c {
                width: 250px;
                height: 250px;
                background:red;
                float: left;
                display: none;
                text-align: center;
            }
            .a；hover {
                margin-left: 50px;
                transition: all 1s;
            }
            .a:hover .b{
                display: none;
                transition: all 1s;
            }
            .a:hover .c{
                display: block;
                transition: all 1s;
            }
            span {
                font-size: 100px;
            }

            p {
                /* text-shadow: 2px 2px 2px red; */
                color: orangered;
                width: 200px;
                /* word-wrap: break-word; */
                /* word-break: break-all; */
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .d {
                height: 500px;
                width: 500px;
                background: linear-gradient(to bottom right,red,pink);
            }
            .e {
                height: 200px;
                width: 300px;
                background: linear-gradient(to right ,blue,green);
            }
            .f {
                width: 200px;
                height: 200px;
                background: linear-gradient(45deg,green,yellow);
            }
            .f:hover {
                background: linear-gradient(270deg,green,yellow);
                transition: all 5s;
            }
            .g {
                width: 600px;
                height: 200px;
                background: linear-gradient(to right,red 10%,orange 15%,yellow,green,blue);
            }
            .h {
                width: 200px;
                height: 200px;
                background: linear-gradient(to left,rgba(255,0,0,0),rgba(255,0,0,1));
            }
            .i {
                width: 100px;
                height: 300px;
                background: repeating-linear-gradient(to bottom,red 20%,blue 30%);
            }
            .j {
                width: 300px;
                height: 200px;
                background: repeating-radial-gradient(ellipse,red 5%,skyblue 15%,red 25%);
            }
            .k {
                width: 300px;
                height: 300px;
                background: -webkit-radial-gradient(50% 50%,closest-side,red ,blue,pink);
            }
            .l {
                width: 300px;
                height: 300px;
                background: -webkit-radial-gradient(50% 50%,farthest-side,red ,blue,pink);
            }
            .m {
                width: 300px;
                height: 300px;
                background: -webkit-radial-gradient(50% 50%,closest-corner,red ,blue,pink);
            }
            .n {
                width: 300px;
                height: 300px;
                background: -webkit-radial-gradient(50% 50%,farthest-corner,red ,blue,pink);
            }
            .o {
                width: 1000px;
                height: 1000px;
                background: repeating-linear-gradient(to bottom,#ccc 0px,#f9f9f9 2px,#f9f9f9 30px);
            }
        </style>

        <div class="a">
            <div class="b"><span>1</span></div>
            <div class="c"><span>2</span></div>
        </div>
        <p>
发射点发生士大夫    thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.
        </p>

        <div class="d"></div>
        <div class="e"></div>
        <div class="f"></div>
        <div class="g"></div>
        <div class="h"></div>
        <div class="i"></div>
        <div class="j"></div>
        <div class="k"></div>
        <div class="l"></div>
        <div class="m"></div>
        <div class="n"></div>
        <div class="o"></div>

    </body>
</html>